package com.example.wechattakeaway.service;

import com.example.wechattakeaway.form.mernoticeform.InsertMerNoticeForm;
import com.example.wechattakeaway.form.mernoticeform.UpdateMerNoticeForm;
import com.example.wechattakeaway.vo.ResultVO;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@Service
@Repository
public interface MerNoticeService {
    //插入公告
    ResultVO insertMerNotice(InsertMerNoticeForm insertMerNoticeForm);

    //修改公告
    ResultVO updateNotice(UpdateMerNoticeForm updateMerNoticeForm);

    //根据商家id查询所有公告
    ResultVO selectAllNoticeByMerId(Integer pageNum,Integer merchantId);

    //根据id查询公告
    ResultVO selectNoticeById(Integer noticeId);

    //根据商家id以及状态查询公告列表
    ResultVO selectNoticeByMerchantId(Integer merchantId);

    //删除公告
    ResultVO deleteMerNotice(Integer noticeId);
}
